package com.dmwork.service.interaction.feign;

import com.dmwork.common.base.result.R;
import com.dmwork.service.interaction.feign.impl.MessageFeignServiceFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;


@Service
@FeignClient(name = "service-message-center", fallback = MessageFeignServiceFallback.class)
public interface MessageFeignService {

    @GetMapping("/front/dm_work/message/feed_follow/me/get_unread_feed_count")
    R getUnreadFeedCount();

    @GetMapping("/front/dm_work/message/feed_follow/me/get_feed_info_list/{page}/{limit}")
    R getFeedInfoList(@PathVariable("page") Integer page, @PathVariable("limit") Integer limit);

    @GetMapping("/front/dm_work/message/feed_follow/me/feign/get_unread_feed_id_list/{customerId}")
    R getUnreadFeedIdList(@PathVariable("customerId") String customerId);


    /**
     * 获取个人评论消息的评论id列表
     * @param page
     * @param limit
     * @return
     */
    @GetMapping("/front/dm_work/message/comment_message/me/feign/get_comment_message_list/{page}/{limit}")
    R getCommentMessageList(@PathVariable Integer page, @PathVariable Integer limit);

    /**
     * 获取点赞消息的id列表
     * @param page
     * @param limit
     * @return
     */
    @GetMapping("/front/dm_work/message/comment_like_message/me/feign/get_comment_like_message_list/{page}/{limit}")
    R getCommentLikeMessageList(@PathVariable Integer page, @PathVariable Integer limit);

}
